﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using RCREEE.Library;
using RCREEE.Library.Entities;

namespace RCREEE.Service
{
    
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public partial class Service1 : System.Web.Services.WebService
    {

        public List<string> GetMultiValueItemValue(int itemId, int languageCode)
        {
            return DataManager.GetMultiValueItemValues(itemId, languageCode);
        }

        public void SaveMultiValueItemValue(int itemId, int languageCode, string value)
        {
            DataManager.InsertMultiItemValueValue(itemId,languageCode,value);
        }

        public static List<Item> GetItemsByLanguageAndCategory(int languageCode, int categoryId)
        {
           return DataManager.GetItemsByLanguageAndCategory(languageCode, categoryId);
        }
    }
}
